package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.component.method.MethodComponent;
import cn.edu.sjtu.se.dslab.project.Project;
import cn.edu.sjtu.se.dslab.project.ProjectMethod;

public interface IProjectMethodService {
	
	public boolean addProjectMethod(ProjectMethod projectMethod);

	public boolean deleteProjectMethodById(long id);
	
	public boolean deleteProjectMethod(ProjectMethod projectMethod);
	
	public List<ProjectMethod>  getListByProject(Project project);
	
	//public  Set<Project>  getListByUserAndGroup(User user,PGroup group);
	
	//public PageBean<ProjectMethod> getPageBeanByProject(int pageNo,Project project) throws DBException;
	
	public boolean updateProjectMethod(ProjectMethod projectMethod);

	public List<Project> getProjectListByMethodComponent(MethodComponent methodComponent);

	public boolean addProjectMethods(long projectId, Long[] methodComponentIds);

	public boolean deleteProjectMethodByIds(Long[] projectMethodIds);
}
